<?php
class SectionsPanel extends PageElement
{
	private $category;
	
	public function __construct($category)
	{
		$this->category = $category;
	}
	
	public function getHTML()
	{
		$category = new Hidden();
		$category->setName("Category");
		if(isset($_POST['Category']))
			$category->setValue($_POST['Category']);
		
		$html = $category->getHTML();
	
/*		$html .= "<div id=\"content\">\n";
		$html .= "<h1>".$this->section."</h1>\n";*/
		
		$html .= "<p style=\"text-align: center;\">\n";
		
		$html .= "<img id=\"ImgChoral\" width=\"130\" height=\"80\" ";
		if($this->category!='1')
		{
			$html .= "onMouseOver=\"OnMouseOverChoral();\" ";
			$html .= "onMouseOut=\"OnMouseOutChoral();\" ";
		}
		$html .= "onclick=\"OnClickChoral();\" ";
		$html .= "src=\"../Images/Choral";
		if($this->category!='1')$html .= 'A';
		$html .= ".png\" />&nbsp;&nbsp;&nbsp;\n";
		
		$html .= "<img id=\"ImgOrgan\" width=\"130\" height=\"80\" ";
		if($this->category!='2')
		{
			$html .= "onMouseOver=\"OnMouseOverOrgan();\" ";
			$html .= "onMouseOut=\"OnMouseOutOrgan();\" ";
		}
		$html .= "onclick=\"OnClickOrgan();\" ";
		$html .= "src=\"../Images/Organ";
		if($this->category!='2')$html .= 'A';
		$html .= ".png\" />&nbsp;&nbsp;&nbsp;\n";
		
		$html .= "<img id=\"ImgLiturgy\" width=\"130\" height=\"80\" ";
		if($this->category!='3')
		{
			$html .= "onMouseOver=\"OnMouseOverLiturgy();\" ";
			$html .= "onMouseOut=\"OnMouseOutLiturgy();\" ";
		}
		$html .= "onclick=\"OnClickLiturgy();\" ";
		$html .= "src=\"../Images/Liturgy";
		if($this->category!='3')$html .= 'A';
		$html .= ".png\" />&nbsp;&nbsp;&nbsp;\n";
		
		$html .= "<img id=\"ImgProfessional\" width=\"130\" height=\"80\" ";
		if($this->category!='4')
		{
			$html .= "onMouseOver=\"OnMouseOverProfessional();\" ";
			$html .= "onMouseOut=\"OnMouseOutProfessional();\" ";
		}
		$html .= "onclick=\"OnClickProfessional();\" ";
		$html .= "src=\"../Images/Professional";
		if($this->category!='4')$html .= 'A';
		$html .= ".png\" />&nbsp;&nbsp;&nbsp;\n";
		
		$html .= "</p>\n";
		
		return $html;
		
		
		
	}
	
}

?>